package com.yanghs.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author yanghs
 * @Description:
 * @date 2018/2/27 15:49
 */
@Controller
public class testController {

    @RequestMapping("/a.action")
    public @ResponseBody String test1(@RequestParam Map map) {
        String a = (String) map.get("name");
        //mv.setViewName("test");
        return  a;
    }
}
